F = float(input())
C = 5 * (F - 32) / 9
print(f"{C:.5f}")